<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="formbody">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>
 <ul class="forminfo" >
	<li class="hang_1">
		<?php echo $form->labelEx($model,'userName',array('style'=>"text-align:right;")); ?>&nbsp;
		<?php echo $form->textField($model,'userName',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'userName'); ?>
	</li>

	<li class="hang_1">
		<?php echo $form->labelEx($model,'password',array('style'=>"text-align:right;")); ?>&nbsp;
		<?php echo $form->passwordField($model,'password',array('size'=>20,'maxlength'=>20,'class'=>'dfinput')); ?>
		<?php echo $form->error($model,'password'); ?>
	</li>
    <li class="hang_1">
 <label style="text-align:right; width:140px;"> &nbsp;所属在地区：</label>
      <?php
        $selectcss =array('class'=>"dfinput1",'style'=>"opacity:1; filter:alpha(opacity=100);");
        $this->Widget('ext.WDjQuerycity.WDjQuerycity', array(
        'tag'=>'User_',
        'model'  => $model,
        'province' =>'uuid',  //数据库字段province
        'city' =>'facebook',  //数据库字段city
        'area' =>'twitter',  //数据库字段area 
        'provinceValue'=>$model->uuid,  // province 默认值
        'cityValue' =>$model->facebook,  // city默认值
        'areaValue'=>$model->twitter,  // area默认值
        'provinceOptions' => $selectcss, // province Html Options
        'cityOptions' => $selectcss, // city Html Options
        'areaOptions' => $selectcss // area Html Options
));
    ?>
    </li>
	<li class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '新建' : '保存',array('class'=>'qd')); ?>
	</li>
    </ul>

<?php $this->endWidget(); ?>

</div><!-- form -->